/*
 * Copyright 2012 Alibaba.com All right reserved. This software is the
 * confidential and proprietary information of Alibaba.com ("Confidential
 * Information"). You shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license agreement you entered
 * into with Alibaba.com.
 */
package test.abc.log4j;

import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Logger;

/**
 * 类HelloLog4j.java的实现描述：TODO 类实现描述
 * 
 * @author husong 2012-10-27 下午3:21:59
 */
public class HelloLog4j {

    private static Logger logger = Logger.getLogger(HelloLog4j.class);

    public static void main(String[] args) {
        BasicConfigurator.configure();
        // PropertyConfigurator.configure("src/log4j.properties");
        // 记录debug级别的信息
        logger.debug("This is debug message.");
        // 记录info级别的信息
        logger.info("This is info message.");
        // 记录error级别的信息
        logger.error("This is error message.");
    }
}
